package physical;

import javax.swing.JTextField;

import domain.CardReader;


public class CardReaderSimulation extends JTextField implements CardReader{
	private static final long serialVersionUID = 1L;
	
	@Override
	public boolean readCard() {
		if(this.getText().equals("123")) {
			return true;
		}
		return false;
	}

	@Override
	public boolean readCardWithPassword(String password) {
		if(password.equals("123456")) {
			return true;
		}
		return false;
	}

	@Override
	public void exitCard() {
		
	}


}
